// \$Id: checkout.js 313 2011-11-18 04:09:24Z bobcat $

J(document).ready(function() {
  // error message shifting
  try {
    if (J('table.ucErrorMessageBorder').length > 0) {
      if (window.location.pathname === '/checkout/accessAccountLoad.do' ||
          window.location.pathname === '/checkout/accessAccountSave.do' ||
          window.location.pathname === '/cgi-bin/UCEditor') {
        J('table.ucErrorMessageBorder').appendTo('div.errorBox');
      } else {
        var errorHTML = J('table.ucErrorMessageBorder').parent().html();
        J('table.ucErrorMessageBorder').parent().parent().remove();
        J('div.errorBox').html(errorHTML);
      }
      J('div.errorBox').show();
      J('table.ucErrorMessageBorder').show('slow');
    }
  } catch (e) {
    handleError(e);
  }
});
